|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Naanou Indexer. Provides high-level, almost IDictionary type access to underlying Chord protocol, provided by Naanou.LookupService
TODO: Investigate providing full IDictionary support
Field Summary | |
---|---|
string | cachedIdSerial |
long |
DEFAULT_KEY_EXPIRY
Default key expiry time |
Naanou.RunningStats | getStats |
Naanou.LookupService.FingerKeyChangeHandler | keyChangeHandler |
Naanou.KeyStorer | keyStorer |
Naanou.LookupService.Node | node |
int |
ONLINE_WAIT
Seconds to wait when node has gone online before key publishing etc. starts |
Naanou.frmNMain | parentForm |
bool | PRIVATE |
Naanou.RunningStats | putStats |
System.Random | random |
bool | ready |
Naanou.frmChordStatus | status |
Naanou.frmVis | visForm |
Constructor Summary | |
---|---|
Indexer() Initializes a new instance of the Indexer class. |
Property Summary | |
---|---|
Naanou.LookupService.NodeAddress |
Address
Gets the address of the indexing service |
Naanou.RunningStats | GetPerfStats |
Naanou.KeyStorer |
KeyStorer
Gets key storer |
Naanou.LookupService.Node | Node |
Naanou.frmNMain |
ParentForm
Gets or sets the parent form |
Naanou.RunningStats | PutPerfStats |
bool |
Ready
Gets a boolean indicating whether the indexing service is available and ready |
Naanou.IndexerStats | Stats |
Naanou.frmChordStatus |
StatusForm_
Gets the status form |
Naanou.frmVis | VisForm |
Method Summary | |
---|---|
Naanou.RunningStats |
Get(Naanou.Common.Hash key, Naanou.Common.GotKeyDelegate callback) Gets a data value from a key |
string | GetRequestSerial() |
void | NodeStart() |
void | NowOffline() |
void | NowOnline() |
void | NowOnlineImpl() |
void | OnNodeError(Naanou.LookupService.Node sender, Naanou.LookupService.NodeErrorStateArgs e) |
void | OnNodeStateChange(object sender, System.EventArgs e) |
void | OnPredecessorChange(Naanou.LookupService.Node node, Naanou.LookupService.AddressChangeArgs e) |
void | OnSuccessorChange(Naanou.LookupService.Node node, Naanou.LookupService.AddressChangeArgs e) |
void | OnUserWarning(string message) |
int |
Put(Naanou.Common.Hash key, Naanou.Common.Search.IKey data, long expireIn, int hopCount) Puts a key, an a associated data value |
int |
Put(Naanou.Common.Hash key, Naanou.Common.Search.IKey data) Puts a key, (with a default key expiry length) and a associated data value |
void | QueryAsync(Naanou.Common.Search.SearchQuery query, Naanou.Common.QueryProgressDelegate progressDelegate) |
void | QueryAsync(Naanou.Common.Search.SearchQuery query, Naanou.Common.QueryProgressDelegate progressDelegate, Naanou.Common.BasicAddress address, string requestSerial) |
void | RestartIndexer() |
void | ReSyncVis() |
void |
Start() Starts the indexing service |
void |
Stop() Stops the indexing service |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Event Summary | |
---|---|
System.EventHandler |
StateChange
Node state has changed |
Field Detail |
---|
private string cachedIdSerial
public long DEFAULT_KEY_EXPIRY
Default key expiry time
private Naanou.RunningStats getStats
private Naanou.LookupService.FingerKeyChangeHandler keyChangeHandler
private Naanou.KeyStorer keyStorer
private Naanou.LookupService.Node node
private int ONLINE_WAIT
Seconds to wait when node has gone online before key publishing etc. starts
private Naanou.frmNMain parentForm
private bool PRIVATE
private Naanou.RunningStats putStats
private System.Random random
private bool ready
private Naanou.frmChordStatus status
private Naanou.frmVis visForm
Constructor Detail |
---|
private Indexer()
Initializes a new instance of the Indexer class.
Property Detail |
---|
public Naanou.LookupService.NodeAddress Address
Gets the address of the indexing service
public Naanou.RunningStats GetPerfStats
public Naanou.KeyStorer KeyStorer
Gets key storer
public Naanou.LookupService.Node Node
public Naanou.frmNMain ParentForm
Gets or sets the parent form
public Naanou.RunningStats PutPerfStats
public bool Ready
Gets a boolean indicating whether the indexing service is available and ready
public Naanou.IndexerStats Stats
public Naanou.frmChordStatus StatusForm_
Gets the status form
public Naanou.frmVis VisForm
Method Detail |
---|
public Naanou.RunningStats Get(Naanou.Common.Hash key, Naanou.Common.GotKeyDelegate callback)
Gets a data value from a key
Parameters:
key
- Keycallback
- Callback for getpublic string GetRequestSerial()
private void NodeStart()
private void NowOffline()
private void NowOnline()
private void NowOnlineImpl()
private void OnNodeError(Naanou.LookupService.Node sender, Naanou.LookupService.NodeErrorStateArgs e)
private void OnNodeStateChange(object sender, System.EventArgs e)
private void OnPredecessorChange(Naanou.LookupService.Node node, Naanou.LookupService.AddressChangeArgs e)
private void OnSuccessorChange(Naanou.LookupService.Node node, Naanou.LookupService.AddressChangeArgs e)
private void OnUserWarning(string message)
public int Put(Naanou.Common.Hash key, Naanou.Common.Search.IKey data, long expireIn, int hopCount)
Puts a key, an a associated data value
Parameters:
key
- Keydata
- DataexpireIn
- How many minutes key is valid forhopCount
- Hop count for putpublic int Put(Naanou.Common.Hash key, Naanou.Common.Search.IKey data)
Puts a key, (with a default key expiry length) and a associated data value
Parameters:
key
- Keydata
- Datapublic void QueryAsync(Naanou.Common.Search.SearchQuery query, Naanou.Common.QueryProgressDelegate progressDelegate)
private void QueryAsync(Naanou.Common.Search.SearchQuery query, Naanou.Common.QueryProgressDelegate progressDelegate, Naanou.Common.BasicAddress address, string requestSerial)
private void RestartIndexer()
internal void ReSyncVis()
public void Start()
Starts the indexing service
public void Stop()
Stops the indexing service
Event Detail |
---|
public System.EventHandler StateChange
Node state has changed
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |